home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 4
/
Amiga Tools 4.iso
/
tools
/
netzwerk
/
tcp-ip
/
netbeginner
/
scripts
/
stopinternet
< prev
next >
Wrap
Text File
|
1996-02-15
|
2KB
|
49 lines
;*** Use this example script to stop your dynamic PPP Internet
;*** connection so you can keep the original Stopnet script intact
;***
;*** Utilisez ce script exemple pour arrêter votre connection
;*** Internet PPP dynamique, vous garderez ainsi le script original
;*** Stopnet intact.
;***
;*** NEEDED: AmiTCP/IP 4.0 or up (Aminet:comm/tcp/AmiTCP_demo_40.lha)
;*** PPP 1.30 or up (Aminet:comm/net/PPP1_30.lha)
;*** Serline (included)
;*** USEFULL: Online-o-Meter (Aminet:comm/misc/Online1_4.lha)
;*** PhoneBill (Aminet:comm/misc/pbill33d.lha)
;*** socket.library (available from Thor Home pages)
;***
;*** note: lines begining with ';' are comments ;)
;***
if not exists env:IPMODEMPORT
setenv IPMODEMPORT "serial.device 0"
; ^^^^^^^^^^^^^ ^
; must be the same as in StartInternet
; idem que pour StartInternet
endif
rx 'if show("P","AMITCP") then return 5' >NIL:
if warn ; if AmiTCP still active,
stopnet ; then stop it.
endif
serline "!" $IPMODEMPORT
if $rc EQ 0 ; if modem still online,
offline ppp0 ; then hang up.
endif
serline "!" $IPMODEMPORT
if $rc EQ 0
echo "Carrier still present!"
quit
else
; *** if modem is offline and Online-o-Meter exists and is ***
; *** still running, than stop it too. ***
; *** ***
; *** si le modem est offline et que Online-o-meter existe ***
; *** et tourne toujours, alors on le stoppe aussi ***
rx 'if show("P","OnlineREXX") then address "OnlineREXX" stop'
endif